<template>
  <view class="promoter-page">
    <!-- 背景装饰 -->
    <view class="top-decoration"></view>
    
    <!-- 主要内容区 -->
    <view class="content-wrapper">
      <!-- 顶部个人信息 -->
      <view class="profile-section">
        <view class="left-info">
          <u-avatar
            size="80"
            src="/static/images/avatar.png"
            shape="square"
          ></u-avatar>
          <view class="user-info">
            <text class="name">有底薪</text>
            <text class="phone">15503251118</text>
          </view>
        </view>
        <view class="rank-info">
          <text class="rank-label">店铺推广排名</text>
          <text class="rank-value">5</text>
          <text class="rank-desc">月销售排名</text>
        </view>
      </view>

      <!-- 底部数据统计 -->
      <view class="stats-section">
        <view class="stat-item">
          <text class="value">5</text>
          <text class="label">店铺数量</text>
        </view>
        <view class="stat-item">
          <text class="value">¥0</text>
          <text class="label">今日订单</text>
        </view>
        <view class="stat-item">
          <text class="value">¥1366783.36</text>
          <text class="label">总订单额</text>
        </view>
        <view class="stat-item">
          <text class="value">¥0</text>
          <text class="label">退单总额</text>
        </view>
      </view>
    </view>
  </view>
</template>

<style lang="scss" scoped>
.promoter-page {
  position: relative;
  height: 320rpx;
  overflow: hidden;
}

.top-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 320rpx;
  background: linear-gradient(135deg, #4a6feb, #6e8efb);
  z-index: 1;
}

.content-wrapper {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 30rpx;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40rpx;

  .left-info {
    display: flex;
    align-items: center;
    
    .user-info {
      margin-left: 24rpx;
      
      .name {
        font-size: 36rpx;
        color: #fff;
        font-weight: 600;
        display: block;
        margin-bottom: 8rpx;
      }
      
      .phone {
        font-size: 26rpx;
        color: rgba(255, 255, 255, 0.8);
      }
    }
  }

  .rank-info {
    text-align: right;
    padding: 16rpx 24rpx;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12rpx;
    
    .rank-label {
      font-size: 24rpx;
      color: rgba(255, 255, 255, 0.9);
      display: block;
    }
    
    .rank-value {
      font-size: 40rpx;
      color: #ffd700;
      font-weight: bold;
      margin: 4rpx 0;
      display: block;
    }
    
    .rank-desc {
      font-size: 22rpx;
      color: rgba(255, 255, 255, 0.7);
    }
  }
}

.stats-section {
  display: flex;
  justify-content: space-between;
  padding: 20rpx 0;
  border-top: 1rpx solid rgba(255, 255, 255, 0.1);

  .stat-item {
    flex: 1;
    text-align: center;
    position: relative;
    
    &:not(:last-child)::after {
      content: '';
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      height: 40rpx;
      width: 1rpx;
      background: rgba(255, 255, 255, 0.1);
    }
    
    .value {
      display: block;
      font-size: 32rpx;
      color: #fff;
      font-weight: 500;
      margin-bottom: 8rpx;
    }
    
    .label {
      font-size: 24rpx;
      color: rgba(255, 255, 255, 0.8);
    }
  }
}
</style>

<script>
export default {
  data() {
    return {
      // 数据部分保持不变
    }
  }
}
</script> 